Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
victory-vendor
Advanced tools
Vendored dependencies for Victory.
D3 has released most of its libraries as ESM-only. This means that consumers in Node.js applications can no longer just require()
anything with a d3 transitive dependency, including much of Victory.
To help provide an easy path to folks still using CommonJS in their Node.js applications that consume Victory, we now provide this package to vendor in various d3-related packages.
We presently provide the following top-level libraries:
This is the total list of top and transitive libraries we vendor:
Note that this does not include the following D3 libraries that still support CommonJS:
We provide two alternate paths and behaviors -- for ESM and CommonJS
If you do a Node.js import like:
import { interpolate } from "victory-vendor/d3-interpolate";
under the hood it's going to just re-export and pass you through to node_modules/d3-interpolate
, the real ESM library from D3.
If you do a Node.js import like:
const { interpolate } = require("victory-vendor/d3-interpolate");
under the hood it's going to will go to an alternate path that contains the transpiled version of the underlying d3 library to be found at victory-vendor/lib-vendor/d3-interpolate/**/*.js
. This futher has internally consistent import references to other victory-vendor/lib-vendor/<pkg-name>
paths.
Note that for some tooling (like Jest) that doesn't play well with package.json:exports
routing to this CommonJS path, we also output a root file in the form of victory-vendor/d3-interpolate.js
.
This project is released under the MIT license, but the vendor'ed in libraries include other licenses (e.g. ISC) that we enumerate in our package.json:license
field.
FAQs
Vendored dependencies for Victory
The npm package victory-vendor receives a total of 1,197,920 weekly downloads. As such, victory-vendor popularity was classified as popular.
We found that victory-vendor demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 16 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.